package com.chif.goingplus.service;

import com.chif.goingplus.dao.WorkMapper;
import com.chif.goingplus.pojo.Work;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkServiceImpl implements WorkService {


    @Autowired
    WorkMapper workMapper;


    @Override
    public int addWork(Work work) {
        return workMapper.addWork(work);
    }

    @Override
    public int deleteWorkById(int id) {
        return workMapper.deleteWorkById(id);
    }

    @Override
    public int updateWork(Work work) {
        return workMapper.updateWork(work);
    }

    @Override
    public List<Work> queryWorksByEmp(int id) {
        return workMapper.queryWorksByEmp(id);
    }
}
